<include file="Public/min-header"/>
<body>
    <section class="content">
        <div class="container-fluid">
            <div class="panel panel-default">
                <div class="pull-right">
                    <a href="javascript:history.go(-1)" class="btn btn-default glyphicon glyphicon-arrow-left"></a>
                </div>
                <!-- Default panel contents -->
                <div class="panel-heading">
                    <h3 class="panel-title glyphicon glyphicon-list"> 菜单列表</h3>
                </div>
                <div class="panel-body">
                    <ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" class="active"><a href="#">菜单列表</a></li>
                    </ul>
                    <!--表单-->
                    <form action="javascript:void(0);" role="form" id="menu" onsubmit="menu_operate('__MODULE__','{$info.id}')">
                        <table class="table table-bordered table-hover">
                            <tr>
                                <td>父级分类：</td>
                                <td>
                                    <select class="form-control" name="parent_id" style="width:250px;">
                                        <option value="0">请选择--</option>
                                        <foreach name="menu" item="vo">
                                            <if condition="$info['parent_id'] eq $vo['id']">
                                                <option value="{$vo.id}" selected="selected">{$vo.html}{$vo.menu_name}</option>
                                                <else/>
                                                <option value="{$vo.id}">{$vo.html}{$vo.menu_name}</option>
                                            </if>
                                        </foreach>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>菜单名称：</td>
                                <td><input type="text" name="menu_name"  class="form-control menu_tips_1" value="{$info.menu_name}" style="width:250px;"></td>
                            </tr>
                            <tr>
                                <td>链接地址：</td>
                                <td><input type="text" name="url" class="form-control menu_tips_2" value="{$info.url}"></td>
                            </tr>
                            <tr>
                                <td>排序：</td>
                                <td><input type="text" name="sort" class="form-control" value="{$info.sort}" style="width:250px;"></td>
                            </tr>
                        </table>
                        <div class="pull-right">
                            <!--<button type="submit" class="btn btn-primary">保存</button>-->
                            <input type="hidden" id="parent_id" value="{$info.parent_id}">
                            <input type="submit" id="sub" value="保存" class="btn btn-primary">
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </section>
</body>
</html>
<script>

</script>